﻿namespace Basic.FlowRemoteModel.Flow.Model
{
    public class ErrorNode
    {
        public long Id
        {
            get;
            set;
        }
        public string Type
        {
            get;
            set;
        }
        public string Error
        {
            get;
            set;
        }
        public override bool Equals(object? obj)
        {
            if (obj is ErrorNode i)
            {
                return i.Id==this.Id && i.Type==this.Type;
            }
            return false;
        }
        public override int GetHashCode()
        {
            return (this.Type +this.Id.ToString()).GetHashCode();
        }
    }
}
